home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1995-01-26 | 3.8 KB | [TEXT/MMCC] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Compact Compressed (Unix) (archive/compact)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Thu Jan 26 20:21:37 1995, modified Thu Jan 26 20:21:37 1995, creator 'MMCC', type ASCII, 3050 bytes "SampleProcs.c" , at 0xc6a 544 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MMCC] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0d 53 61 6d 70 6c 65 | 50 72 6f 63 73 2e 63 00 |..Sample|Procs.c.|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 4d 43 | 43 01 00 00 00 00 00 00 |.TEXTMMC|C.......|
|00000050| 00 00 00 00 00 0b ea 00 | 00 02 20 ab 4d fb 21 ab |........|.. .M.!.|
|00000060| 4d fb 21 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |M.!.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 32 79 00 00 |........|....2y..|
|00000080| 23 69 6e 63 6c 75 64 65 | 20 22 4d 50 44 69 61 6c |#include| "MPDial|
|00000090| 6f 67 73 2e 68 22 0d 23 | 69 6e 63 6c 75 64 65 20 |ogs.h".#|include |
|000000a0| 22 53 61 6d 70 6c 65 50 | 72 6f 63 73 2e 68 22 0d |"SampleP|rocs.h".|
|000000b0| 0d 2f 2a 20 53 61 6d 70 | 6c 65 20 45 64 69 74 20 |./* Samp|le Edit |
|000000c0| 41 63 74 69 6f 6e 20 50 | 72 6f 63 65 64 75 72 65 |Action P|rocedure|
|000000d0| 0d 20 2a 20 20 20 6d 54 | 79 70 65 20 3a 20 6d 65 |. * mT|ype : me|
|000000e0| 73 73 61 67 65 20 74 79 | 70 65 0d 20 2a 20 20 20 |ssage ty|pe. * |
|000000f0| 68 50 74 72 20 3a 20 73 | 74 6f 72 61 67 65 20 66 |hPtr : s|torage f|
|00000100| 6f 72 20 64 61 74 61 20 | 72 65 70 72 65 73 65 6e |or data |represen|
|00000110| 74 69 6e 67 20 63 6f 6e | 74 72 6f 6c 0d 20 2a 20 |ting con|trol. * |
|00000120| 20 20 69 48 61 6e 64 6c | 65 20 3a 20 68 61 6e 64 | iHandl|e : hand|
|00000130| 6c 65 20 69 66 20 63 6f | 6e 74 72 6f 6c 20 69 74 |le if co|ntrol it|
|00000140| 65 6d 0d 20 2a 20 20 20 | 70 61 6e 65 20 3a 20 70 |em. * |pane : p|
|00000150| 61 6e 65 20 77 68 65 72 | 65 20 74 68 65 20 63 6f |ane wher|e the co|
|00000160| 6e 74 72 6f 6c 20 72 65 | 73 69 64 65 73 0d 20 2a |ntrol re|sides. *|
|00000170| 20 20 20 69 74 65 6d 20 | 3a 20 69 74 65 6d 20 6e | item |: item n|
|00000180| 75 6d 62 65 72 20 6f 66 | 20 63 6f 6e 74 72 6f 6c |umber of| control|
|00000190| 20 69 6e 20 74 68 65 20 | 70 61 6e 65 0d 20 2a 2f | in the |pane. */|
|000001a0| 0d 73 68 6f 72 74 20 4d | 79 45 64 69 74 41 63 74 |.short M|yEditAct|
|000001b0| 69 6f 6e 28 73 68 6f 72 | 74 20 6d 54 79 70 65 2c |ion(shor|t mType,|
|000001c0| 20 63 68 61 72 20 2a 68 | 50 74 72 2c 20 48 61 6e | char *h|Ptr, Han|
|000001d0| 64 6c 65 20 69 48 61 6e | 64 6c 65 2c 20 73 68 6f |dle iHan|dle, sho|
|000001e0| 72 74 20 70 61 6e 65 2c | 20 73 68 6f 72 74 20 69 |rt pane,| short i|
|000001f0| 74 65 6d 29 0d 7b 0d 09 | 73 68 6f 72 74 20 72 65 |tem).{..|short re|
|00000200| 74 20 3d 20 30 3b 0d 09 | 6c 6f 6e 67 20 76 61 6c |t = 0;..|long val|
|00000210| 3b 0d 09 53 74 72 32 35 | 35 20 74 65 78 74 53 74 |;..Str25|5 textSt|
|00000220| 72 3b 0d 09 0d 09 73 77 | 69 74 63 68 20 28 6d 54 |r;....sw|itch (mT|
|00000230| 79 70 65 29 20 7b 0d 09 | 09 63 61 73 65 20 6b 50 |ype) {..|.case kP|
|00000240| 32 54 41 63 74 69 6f 6e | 3a 20 2f 2f 20 53 74 6f |2TAction|: // Sto|
|00000250| 72 65 20 76 61 6c 75 65 | 20 6f 66 20 63 6f 6e 74 |re value| of cont|
|00000260| 72 6f 6c 20 69 6e 20 6d | 65 6d 6f 72 79 0d 09 09 |rol in m|emory...|
|00000270| 09 47 65 74 44 69 61 6c | 6f 67 49 74 65 6d 54 65 |.GetDial|ogItemTe|
|00000280| 78 74 28 28 48 61 6e 64 | 6c 65 29 20 69 48 61 6e |xt((Hand|le) iHan|
|00000290| 64 6c 65 2c 20 74 65 78 | 74 53 74 72 29 3b 0d 09 |dle, tex|tStr);..|
|000002a0| 09 09 53 74 72 69 6e 67 | 54 6f 4e 75 6d 28 74 65 |..String|ToNum(te|
|000002b0| 78 74 53 74 72 2c 20 26 | 76 61 6c 29 3b 0d 09 09 |xtStr, &|val);...|
|000002c0| 09 2a 28 6c 6f 6e 67 20 | 2a 29 20 68 50 74 72 20 |.*(long |*) hPtr |
|000002d0| 3d 20 76 61 6c 3b 0d 09 | 09 09 72 65 74 20 3d 20 |= val;..|..ret = |
|000002e0| 73 69 7a 65 6f 66 28 6c | 6f 6e 67 29 3b 0d 09 09 |sizeof(l|ong);...|
|000002f0| 09 62 72 65 61 6b 3b 0d | 09 09 63 61 73 65 20 6b |.break;.|..case k|
|00000300| 54 32 50 41 63 74 69 6f | 6e 3a 20 2f 2f 20 53 65 |T2PActio|n: // Se|
|00000310| 74 20 76 61 6c 75 65 20 | 6f 66 20 63 6f 6e 74 72 |t value |of contr|
|00000320| 6f 6c 20 62 61 73 65 64 | 20 6f 6e 20 6d 65 6d 6f |ol based| on memo|
|00000330| 72 79 0d 09 09 09 76 61 | 6c 20 3d 20 2a 28 6c 6f |ry....va|l = *(lo|
|00000340| 6e 67 20 2a 29 20 68 50 | 74 72 3b 0d 09 09 09 4e |ng *) hP|tr;....N|
|00000350| 75 6d 54 6f 53 74 72 69 | 6e 67 28 76 61 6c 2c 20 |umToStri|ng(val, |
|00000360| 74 65 78 74 53 74 72 29 | 3b 0d 09 09 09 53 65 74 |textStr)|;....Set|
|00000370| 44 69 61 6c 6f 67 49 74 | 65 6d 54 65 78 74 28 28 |DialogIt|emText((|
|00000380| 48 61 6e 64 6c 65 29 20 | 69 48 61 6e 64 6c 65 2c |Handle) |iHandle,|
|00000390| 20 74 65 78 74 53 74 72 | 29 3b 0d 09 09 09 72 65 | textStr|);....re|
|000003a0| 74 20 3d 20 73 69 7a 65 | 6f 66 28 6c 6f 6e 67 29 |t = size|of(long)|
|000003b0| 3b 0d 09 09 09 62 72 65 | 61 6b 3b 0d 09 09 63 61 |;....bre|ak;...ca|
|000003c0| 73 65 20 6b 43 61 6c 63 | 41 63 74 69 6f 6e 3a 20 |se kCalc|Action: |
|000003d0| 2f 2f 20 52 65 74 75 72 | 6e 20 6c 65 6e 67 74 68 |// Retur|n length|
|000003e0| 20 6f 66 20 73 74 6f 72 | 61 67 65 20 72 65 71 75 | of stor|age requ|
|000003f0| 69 72 65 64 0d 09 09 09 | 72 65 74 20 3d 20 73 69 |ired....|ret = si|
|00000400| 7a 65 6f 66 28 6c 6f 6e | 67 29 3b 0d 09 09 09 62 |zeof(lon|g);....b|
|00000410| 72 65 61 6b 3b 0d 09 09 | 63 61 73 65 20 6b 49 6e |reak;...|case kIn|
|00000420| 69 74 41 63 74 69 6f 6e | 3a 20 2f 2f 20 49 6e 69 |itAction|: // Ini|
|00000430| 74 69 61 6c 69 7a 65 20 | 76 61 6c 75 65 0d 09 09 |tialize |value...|
|00000440| 09 2a 28 6c 6f 6e 67 20 | 2a 29 20 68 50 74 72 20 |.*(long |*) hPtr |
|00000450| 3d 20 30 3b 0d 09 09 09 | 72 65 74 20 3d 20 73 69 |= 0;....|ret = si|
|00000460| 7a 65 6f 66 28 6c 6f 6e | 67 29 3b 0d 09 09 09 62 |zeof(lon|g);....b|
|00000470| 72 65 61 6b 3b 0d 09 09 | 64 65 66 61 75 6c 74 3a |reak;...|default:|
|00000480| 0d 09 09 09 62 72 65 61 | 6b 3b 0d 09 7d 0d 0d 09 |....brea|k;..}...|
|00000490| 2f 2f 20 52 65 74 75 72 | 6e 20 6c 65 6e 67 74 68 |// Retur|n length|
|000004a0| 20 6f 66 20 73 74 6f 72 | 61 67 65 20 75 73 65 64 | of stor|age used|
|000004b0| 2f 72 65 71 75 69 72 65 | 64 20 28 6d 75 73 74 20 |/require|d (must |
|000004c0| 62 65 20 74 68 65 20 73 | 61 6d 65 20 69 6e 20 65 |be the s|ame in e|
|000004d0| 61 63 68 20 63 61 73 65 | 29 2e 0d 09 72 65 74 75 |ach case|)...retu|
|000004e0| 72 6e 20 72 65 74 3b 0d | 7d 0d 0d 2f 2a 20 53 61 |rn ret;.|}../* Sa|
|000004f0| 6d 70 6c 65 20 43 6c 69 | 63 6b 20 41 63 74 69 6f |mple Cli|ck Actio|
|00000500| 6e 20 50 72 6f 63 65 64 | 75 72 65 0d 20 2a 20 20 |n Proced|ure. * |
|00000510| 20 6d 54 79 70 65 20 3a | 20 6d 65 73 73 61 67 65 | mType :| message|
|00000520| 20 74 79 70 65 0d 20 2a | 20 20 20 64 6c 6f 67 20 | type. *| dlog |
|00000530| 3a 20 64 69 61 6c 6f 67 | 20 77 68 65 72 65 20 63 |: dialog| where c|
|00000540| 6f 6e 74 72 6f 6c 20 69 | 73 20 69 6e 73 74 61 6c |ontrol i|s instal|
|00000550| 6c 65 64 0d 20 2a 20 20 | 20 70 61 6e 65 20 3a 20 |led. * | pane : |
|00000560| 70 61 6e 65 20 77 68 65 | 72 65 20 74 68 65 20 63 |pane whe|re the c|
|00000570| 6f 6e 74 72 6f 6c 20 72 | 65 73 69 64 65 73 0d 20 |ontrol r|esides. |
|00000580| 2a 20 20 20 69 74 65 6d | 20 3a 20 69 74 65 6d 20 |* item| : item |
|00000590| 6e 75 6d 62 65 72 20 6f | 66 20 63 6f 6e 74 72 6f |number o|f contro|
|000005a0| 6c 20 69 6e 20 74 68 65 | 20 70 61 6e 65 0d 20 2a |l in the| pane. *|
|000005b0| 2f 0d 73 68 6f 72 74 20 | 4d 79 43 6c 69 63 6b 41 |/.short |MyClickA|
|000005c0| 63 74 69 6f 6e 28 73 68 | 6f 72 74 20 6d 54 79 70 |ction(sh|ort mTyp|
|000005d0| 65 2c 20 44 69 61 6c 6f | 67 50 74 72 20 64 6c 6f |e, Dialo|gPtr dlo|
|000005e0| 67 2c 20 73 68 6f 72 74 | 20 70 61 6e 65 2c 20 73 |g, short| pane, s|
|000005f0| 68 6f 72 74 20 69 74 65 | 6d 29 0d 7b 0d 09 4d 50 |hort ite|m).{..MP|
|00000600| 44 48 64 6c 20 64 61 74 | 61 48 3b 0d 09 73 68 6f |DHdl dat|aH;..sho|
|00000610| 72 74 20 69 54 79 70 65 | 2c 20 76 61 6c 20 3d 20 |rt iType|, val = |
|00000620| 30 3b 0d 09 52 65 63 74 | 20 69 52 65 63 74 3b 0d |0;..Rect| iRect;.|
|00000630| 09 48 61 6e 64 6c 65 20 | 69 48 61 6e 64 6c 65 3b |.Handle |iHandle;|
|00000640| 0d 09 53 74 72 32 35 35 | 20 74 68 65 53 74 72 3b |..Str255| theStr;|
|00000650| 0d 0d 09 2f 2f 20 4f 62 | 74 61 69 6e 20 6d 75 6c |...// Ob|tain mul|
|00000660| 74 69 2d 70 61 6e 65 20 | 64 69 61 6c 6f 67 20 73 |ti-pane |dialog s|
|00000670| 74 61 74 65 20 72 65 63 | 6f 72 64 0d 09 64 61 74 |tate rec|ord..dat|
|00000680| 61 48 20 3d 20 28 4d 50 | 44 48 64 6c 29 20 47 65 |aH = (MP|DHdl) Ge|
|00000690| 74 57 52 65 66 43 6f 6e | 28 64 6c 6f 67 29 3b 0d |tWRefCon|(dlog);.|
|000006a0| 0d 09 2f 2f 20 48 61 6e | 64 6c 65 20 74 68 65 20 |..// Han|dle the |
|000006b0| 73 65 63 6f 6e 64 20 69 | 74 65 6d 20 76 61 6c 69 |second i|tem vali|
|000006c0| 64 61 74 69 6f 6e 2e 0d | 09 69 66 20 28 6d 54 79 |dation..|.if (mTy|
|000006d0| 70 65 20 3d 3d 20 6b 56 | 61 6c 69 64 61 74 65 41 |pe == kV|alidateA|
|000006e0| 63 74 69 6f 6e 29 20 7b | 0d 09 09 2f 2f 20 56 61 |ction) {|...// Va|
|000006f0| 6c 69 64 61 74 69 6f 6e | 20 66 61 69 6c 73 20 69 |lidation| fails i|
|00000700| 66 20 6e 6f 6e 2d 64 69 | 67 69 74 73 20 61 72 65 |f non-di|gits are|
|00000710| 20 69 6e 20 74 68 65 20 | 66 69 65 6c 64 0d 09 09 | in the |field...|
|00000720| 69 66 20 28 70 61 6e 65 | 20 3d 3d 20 6b 43 6f 6d |if (pane| == kCom|
|00000730| 6d 50 61 6e 65 20 26 26 | 20 69 74 65 6d 20 3d 3d |mPane &&| item ==|
|00000740| 20 6b 46 72 65 71 75 65 | 6e 63 79 20 2b 20 28 2a | kFreque|ncy + (*|
|00000750| 64 61 74 61 48 29 2d 3e | 62 61 73 65 49 74 65 6d |dataH)->|baseItem|
|00000760| 73 29 20 7b 0d 09 09 09 | 47 65 74 44 69 61 6c 6f |s) {....|GetDialo|
|00000770| 67 49 74 65 6d 28 64 6c | 6f 67 2c 20 69 74 65 6d |gItem(dl|og, item|
|00000780| 2c 20 26 69 54 79 70 65 | 2c 20 26 69 48 61 6e 64 |, &iType|, &iHand|
|00000790| 6c 65 2c 20 26 69 52 65 | 63 74 29 3b 0d 09 09 09 |le, &iRe|ct);....|
|000007a0| 47 65 74 44 69 61 6c 6f | 67 49 74 65 6d 54 65 78 |GetDialo|gItemTex|
|000007b0| 74 28 69 48 61 6e 64 6c | 65 2c 20 74 68 65 53 74 |t(iHandl|e, theSt|
|000007c0| 72 29 3b 0d 09 09 09 76 | 61 6c 20 3d 20 56 65 72 |r);....v|al = Ver|
|000007d0| 69 66 79 44 69 67 69 74 | 73 28 74 68 65 53 74 72 |ifyDigit|s(theStr|
|000007e0| 29 3b 0d 09 09 09 69 66 | 20 28 76 61 6c 29 20 53 |);....if| (val) S|
|000007f0| 74 6f 70 41 6c 65 72 74 | 28 41 4c 45 52 54 5f 49 |topAlert|(ALERT_I|
|00000800| 6e 76 61 6c 69 64 2c 20 | 4e 55 4c 4c 29 3b 0d 09 |nvalid, |NULL);..|
|00000810| 09 7d 0d 09 09 2f 2f 20 | 41 6c 6c 20 6f 74 68 65 |.}...// |All othe|
|00000820| 72 20 69 74 65 6d 73 20 | 76 61 6c 69 64 61 74 65 |r items |validate|
|00000830| 20 61 2d 6f 6b 61 79 0d | 09 09 72 65 74 75 72 6e | a-okay.|..return|
|00000840| 20 76 61 6c 3b 0d 09 7d | 0d 0d 09 2f 2f 20 4f 6e | val;..}|...// On|
|00000850| 6c 79 20 69 6e 74 65 72 | 65 73 74 65 64 20 69 6e |ly inter|ested in|
|00000860| 20 74 68 65 20 74 68 69 | 72 64 20 63 68 65 63 6b | the thi|rd check|
|00000870| 62 6f 78 20 6e 6f 77 2c | 0d 09 2f 2f 20 73 6f 20 |box now,|..// so |
|00000880| 68 61 6e 64 6c 65 20 74 | 68 69 6e 67 73 20 74 68 |handle t|hings th|
|00000890| 65 20 64 65 66 61 75 6c | 74 20 77 61 79 0d 09 69 |e defaul|t way..i|
|000008a0| 66 20 28 70 61 6e 65 20 | 21 3d 20 6b 4d 69 73 63 |f (pane |!= kMisc|
|000008b0| 65 6c 6c 61 6e 65 6f 75 | 73 50 61 6e 65 20 7c 7c |ellaneou|sPane |||
|000008c0| 20 69 74 65 6d 20 21 3d | 20 6b 45 6e 61 62 6c 65 | item !=| kEnable|
|000008d0| 53 65 6c 66 44 65 73 74 | 72 75 63 74 20 2b 20 28 |SelfDest|ruct + (|
|000008e0| 2a 64 61 74 61 48 29 2d | 3e 62 61 73 65 49 74 65 |*dataH)-|>baseIte|
|000008f0| 6d 73 29 0d 09 09 72 65 | 74 75 72 6e 20 28 44 65 |ms)...re|turn (De|
|00000900| 66 61 75 6c 74 43 6c 69 | 63 6b 41 63 74 69 6f 6e |faultCli|ckAction|
|00000910| 28 6d 54 79 70 65 2c 20 | 64 6c 6f 67 2c 20 70 61 |(mType, |dlog, pa|
|00000920| 6e 65 2c 20 69 74 65 6d | 29 29 3b 0d 0d 09 2f 2f |ne, item|));...//|
|00000930| 20 49 6e 69 74 69 61 6c | 69 7a 65 20 61 6e 64 20 | Initial|ize and |
|00000940| 43 6c 69 63 6b 20 6d 65 | 73 73 61 67 65 73 20 61 |Click me|ssages a|
|00000950| 72 65 20 61 6c 6d 6f 73 | 74 20 68 61 6e 64 6c 65 |re almos|t handle|
|00000960| 64 20 74 68 65 20 73 61 | 6d 65 0d 0d 09 2f 2f 20 |d the sa|me...// |
|00000970| 44 69 6d 20 74 68 65 20 | 74 68 69 72 64 20 63 68 |Dim the |third ch|
|00000980| 65 63 6b 62 6f 78 20 62 | 61 73 65 64 20 6f 6e 20 |eckbox b|ased on |
|00000990| 74 68 65 20 76 61 6c 75 | 65 20 6f 66 20 74 68 65 |the valu|e of the|
|000009a0| 20 73 65 63 6f 6e 64 0d | 09 47 65 74 44 69 61 6c | second.|.GetDial|
|000009b0| 6f 67 49 74 65 6d 28 64 | 6c 6f 67 2c 20 69 74 65 |ogItem(d|log, ite|
|000009c0| 6d 2c 20 26 69 54 79 70 | 65 2c 20 26 69 48 61 6e |m, &iTyp|e, &iHan|
|000009d0| 64 6c 65 2c 20 26 69 52 | 65 63 74 29 3b 0d 09 76 |dle, &iR|ect);..v|
|000009e0| 61 6c 20 3d 20 47 65 74 | 43 6f 6e 74 72 6f 6c 56 |al = Get|ControlV|
|000009f0| 61 6c 75 65 28 28 43 6f | 6e 74 72 6f 6c 48 61 6e |alue((Co|ntrolHan|
|00000a00| 64 6c 65 29 69 48 61 6e | 64 6c 65 29 3b 0d 09 73 |dle)iHan|dle);..s|
|00000a10| 77 69 74 63 68 20 28 6d | 54 79 70 65 29 20 7b 0d |witch (m|Type) {.|
|00000a20| 09 09 2f 2f 20 54 6f 67 | 67 6c 65 20 74 68 65 20 |..// Tog|gle the |
|00000a30| 69 74 65 6d 20 69 6e 20 | 72 65 73 70 6f 6e 73 65 |item in |response|
|00000a40| 20 74 6f 20 74 68 65 20 | 75 73 65 72 20 63 6c 69 | to the |user cli|
|00000a50| 63 6b 0d 09 09 63 61 73 | 65 20 6b 43 6c 69 63 6b |ck...cas|e kClick|
|00000a60| 41 63 74 69 6f 6e 3a 0d | 09 09 09 76 61 6c 20 3d |Action:.|...val =|
|00000a70| 20 21 76 61 6c 3b 0d 09 | 09 09 53 65 74 43 6f 6e | !val;..|..SetCon|
|00000a80| 74 72 6f 6c 56 61 6c 75 | 65 28 28 43 6f 6e 74 72 |trolValu|e((Contr|
|00000a90| 6f 6c 48 61 6e 64 6c 65 | 29 20 69 48 61 6e 64 6c |olHandle|) iHandl|
|00000aa0| 65 2c 20 76 61 6c 29 3b | 0d 09 09 09 2f 2f 20 46 |e, val);|....// F|
|00000ab0| 61 6c 6c 20 74 68 72 6f | 75 67 68 21 0d 09 09 2f |all thro|ugh!.../|
|00000ac0| 2f 20 49 6e 20 65 69 74 | 68 65 72 20 63 61 73 65 |/ In eit|her case|
|00000ad0| 2c 20 65 6e 61 62 6c 65 | 2f 64 69 73 61 62 6c 65 |, enable|/disable|
|00000ae0| 20 6e 65 78 74 20 63 68 | 65 63 6b 20 62 6f 78 0d | next ch|eck box.|
|00000af0| 09 09 63 61 73 65 20 6b | 49 6e 69 74 41 63 74 69 |..case k|InitActi|
|00000b00| 6f 6e 3a 0d 09 09 09 41 | 62 6c 65 44 49 74 65 6d |on:....A|bleDItem|
|00000b10| 28 64 6c 6f 67 2c 20 6b | 53 65 6c 66 44 65 73 74 |(dlog, k|SelfDest|
|00000b20| 72 75 63 74 20 2b 20 28 | 2a 64 61 74 61 48 29 2d |ruct + (|*dataH)-|
|00000b30| 3e 62 61 73 65 49 74 65 | 6d 73 2c 20 76 61 6c 29 |>baseIte|ms, val)|
|00000b40| 3b 0d 09 09 09 62 72 65 | 61 6b 3b 0d 09 7d 0d 09 |;....bre|ak;..}..|
|00000b50| 0d 09 2f 2f 20 49 6e 69 | 74 69 61 6c 69 7a 65 20 |..// Ini|tialize |
|00000b60| 61 6e 64 20 43 6c 69 63 | 6b 20 6d 65 73 73 61 67 |and Clic|k messag|
|00000b70| 65 73 20 73 68 6f 75 6c | 64 20 6e 65 76 65 72 20 |es shoul|d never |
|00000b80| 66 61 69 6c 0d 09 72 65 | 74 75 72 6e 20 30 3b 0d |fail..re|turn 0;.|
|00000b90| 7d 0d 0d 2f 2a 20 45 6e | 73 75 72 65 20 74 68 65 |}../* En|sure the|
|00000ba0| 20 70 61 73 73 65 64 20 | 70 61 73 63 61 6c 20 73 | passed |pascal s|
|00000bb0| 74 72 69 6e 67 20 63 6f | 6e 74 61 69 6e 73 20 6f |tring co|ntains o|
|00000bc0| 6e 6c 79 20 64 69 67 69 | 74 73 2e 0d 20 2a 2f 0d |nly digi|ts.. */.|
|00000bd0| 73 68 6f 72 74 20 56 65 | 72 69 66 79 44 69 67 69 |short Ve|rifyDigi|
|00000be0| 74 73 28 53 74 72 69 6e | 67 50 74 72 20 69 6e 53 |ts(Strin|gPtr inS|
|00000bf0| 74 72 69 6e 67 29 0d 7b | 0d 09 69 6e 74 20 69 3b |tring).{|..int i;|
|00000c00| 0d 09 0d 09 66 6f 72 28 | 69 3d 31 3b 20 69 3c 3d |....for(|i=1; i<=|
|00000c10| 2a 69 6e 53 74 72 69 6e | 67 3b 20 69 2b 2b 29 20 |*inStrin|g; i++) |
|00000c20| 7b 0d 09 09 69 66 20 28 | 69 6e 53 74 72 69 6e 67 |{...if (|inString|
|00000c30| 5b 69 5d 20 3c 20 27 30 | 27 20 7c 7c 20 69 6e 53 |[i] < '0|' || inS|
|00000c40| 74 72 69 6e 67 5b 69 5d | 20 3e 20 27 39 27 29 20 |tring[i]| > '9') |
|00000c50| 72 65 74 75 72 6e 20 31 | 3b 0d 09 7d 0d 09 72 65 |return 1|;..}..re|
|00000c60| 74 75 72 6e 20 30 3b 0d | 7d 0d 00 00 00 00 00 00 |turn 0;.|}.......|
|00000c70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c80| 00 00 01 00 00 00 01 b2 | 00 00 00 b2 00 00 00 6e |........|.......n|
|00000c90| ff d0 76 01 33 12 2b 00 | 11 0c 41 d7 7b 78 20 54 |..v.3.+.|..A.{x T|
|00000ca0| 1d 4a 68 09 91 d3 7f 1a | 03 0a b5 07 3c 3c 3c 3c |.Jh.....|....<<<<|
|00000cb0| 0d 53 61 6d 70 6c 65 50 | 72 6f 63 73 2e 63 02 00 |.SampleP|rocs.c..|
|00000cc0| 00 00 54 45 58 54 4d 4d | 43 43 01 00 00 d0 00 80 |..TEXTMM|CC......|
|00000cd0| 00 00 54 45 58 54 4d 4d | 43 43 01 00 00 d0 00 80 |..TEXTMM|CC......|
|00000ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cf0| 00 00 aa 95 1f 1c 00 00 | 0b ea 00 00 02 20 b0 68 |........|..... .h|
|00000d00| 09 66 18 2f 03 3a f5 e9 | 25 87 01 a8 a6 c3 26 1f |.f./.:..|%.....&.|
|00000d10| 4a 00 91 8d d3 1e 03 67 | 40 39 6b 2f 88 39 6e 8d |J......g|@9k/.9n.|
|00000d20| ad 50 20 54 1d 39 68 09 | 2d 41 ec 25 3d 22 4b 50 |.P T.9h.|-A.%="KP|
|00000d30| 89 d6 d6 f5 19 a8 a3 21 | fd 1c 31 13 0f 01 02 05 |.......!|..1.....|
|00000d40| ea f5 ad 19 a8 a3 d0 4a | 2c a3 a8 4a 07 6f 47 4a |.......J|,..J.oGJ|
|00000d50| 6c 8f 6f 00 02 4c 4a 2c | 5f 8a 0f 59 ff d0 02 0a |l.o..LJ,|_..Y....|
|00000d60| 22 30 c0 58 4f 4a 04 78 | da 0a 58 aa 19 0a 4e aa |"0.XOJ.x|..X...N.|
|00000d70| 1a 40 a8 d8 67 2d 5f 80 | 40 a8 d8 2d 5f 5b 0f 80 |.@..g-_.|@..-_[..|
|00000d80| 00 00 00 0a 00 00 08 4b | 00 4e 00 00 00 00 00 00 |.......K|.N......|
|00000d90| 00 4c 00 03 00 14 00 00 | 08 4b 00 4e 00 6f 4c f4 |.L......|.K.N.oL.|
|00000da0| 00 00 05 70 61 6e 65 20 | 00 14 00 00 08 4b 00 4e |...pane |.....K.N|
|00000db0| 00 6f 4c e4 00 00 05 69 | 74 65 6d 20 00 22 00 00 |.oL....i|tem ."..|
|00000dc0| 0b 1b 00 64 00 6f 4c d4 | 00 00 13 28 2a 70 72 65 |...d.oL.|...(*pre|
|00000dd0| 66 48 29 2d 3e 62 61 73 | 65 49 74 65 6d 73 00 00 |fH)->bas|eItems..|
|00000de0| 00 48 00 09 4d 6f 6e 61 | 63 6f 00 00 00 00 00 00 |.H..Mona|co......|
|00000df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e00| 00 00 00 00 00 03 00 04 | 00 56 00 0a 01 f0 02 80 |........|.V......|
|00000e10| 00 56 00 0a 01 f0 02 80 | ac a5 ea 4b 00 00 00 21 |.V......|...K...!|
|00000e20| 00 00 00 2e 00 00 00 00 | 01 00 00 00 00 04 00 01 |........|........|
|00000e30| 00 01 00 00 01 00 00 00 | 01 b2 00 00 00 b2 00 00 |........|........|
|00000e40| 00 6e 00 b2 68 4c 14 34 | 00 00 00 1c 00 6e 00 03 |.n..hL.4|.....n..|
|00000e50| 42 4b 50 54 00 00 00 22 | 44 54 56 55 00 00 00 2e |BKPT..."|DTVU....|
|00000e60| 4d 50 53 52 00 00 00 3a | 4d 57 42 42 00 00 00 46 |MPSR...:|MWBB...F|
|00000e70| 1a a1 ff ff 00 00 00 00 | 00 00 00 00 06 56 ff ff |........|.....V..|
|00000e80| 00 00 00 0e 00 00 00 00 | 03 ed ff ff 00 00 00 5e |........|.......^|
|00000e90| 00 00 00 00 03 f0 ff ff | 00 00 00 aa 00 00 00 00 |........|........|
|00000ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+